package Test2;



//图书 属性
public class Book {
	/**
	 * 
	 */
	
	
	private Integer id; // 编号
	private String name; // 书名
	private Integer repertory ; // 库存

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}




	public Integer getRepertory() {
		return repertory;
	}

	public void setRepertory(Integer repertory) {
		this.repertory = repertory;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name +  ", repertory=" + repertory
				+ "]";
	}

	public Book() {
		super();
		this.id = id;
		this.name = name;
		this.repertory = repertory;
	}

	public Book(Integer id, String name, Integer repertory) {
		super();
		this.id = id;
		this.name = name;
		
		this.repertory = repertory;
	}

}
